package com.base.invoke.entity;

import com.base.invoke.annotation.DesensitizeAnno;
import com.base.invoke.enums.DesensitizeTypeEnum;

/**
 * 测试日志脱敏类
 * 自己业务中需要自己去增加注解
 * @author coolpig
 * @date 2019-09-30
 */
public class CardInfo {
    private String userId;

    @DesensitizeAnno(type = DesensitizeTypeEnum.NAME)
    private String name;
    @DesensitizeAnno(type = DesensitizeTypeEnum.BANK_CARD)
    private String cardId;
    @DesensitizeAnno(type = DesensitizeTypeEnum.ID_CARD)
    private String bank;
    @DesensitizeAnno(type = DesensitizeTypeEnum.PHONE)
    private String phone;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCardId() {
        return cardId;
    }

    public void setCardId(String cardId) {
        this.cardId = cardId;
    }

    public String getBank() {
        return bank;
    }

    public void setBank(String bank) {
        this.bank = bank;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
}